package org.dingxf.util;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import redis.clients.jedis.Jedis;

import java.util.ArrayList;

@Configuration
public class Testutil {


    private final static String HOST = "1.15.25.183";

    private final static int PORT = 6379;

    public static void main(String[] args){

        Jedis jedis = new Jedis(HOST,PORT);
        System.out.println("Redis服务器连接成功！");
        //查看是否正在运行
        System.out.println("服务正在运行：" + jedis.ping());
        ArrayList<String> list = new ArrayList<String>();
    }

}
